<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Animoso.Domain.Album>>" %>
<%@ Import Namespace="Animoso.Domain" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Fotogalerij</h2>
    <ul>
    <% foreach (Album album in Model.OrderByDescending(a => a.DateTime))
{
           %>
           <li><%=Html.ActionLink(album.Name, "Album", new { id = album.Id}) %></li>
  <%
} %>
    </ul>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>
